<!--[if !IE]>start section<![endif]-->
<div class="section table_section">
<div class="section_inner">
<div class="title_wrapper">
<h2><?php __('Users Online');?></h2>
<div class="right">&nbsp;</div>
</div>
<div class="section_content">
<div class="table_wrapper">
<div class="table_wrapper_inner">
<table cellpadding="0" cellspacing="0" width="100%">
	<tbody>
		<tr>	
						<th><?php __('User name');?></th>
						<th><?php __('IP address');?></th>
						<th><?php __('Browser');?></th>
						<th><?php __('Operation System');?></th>
						<th><?php __('Activity');?></th>
		</tr>
		<?php
							$i = 0;
							foreach ($users as $user):
								$class = null;
								if ($i++ % 2 != 0) {
									$class = ' class="second"';
								}
							?>
	<tr<?php echo $class;?>>
		<td class="first_td">
			<?php
				if($user['Whoonline']['user_name']!=null && $user['Whoonline']['user_name']!="Guest") {
				 	echo $html->link($user['Whoonline']['user_name'], array('action' => 'view', $user['Whoonline']['user_id']),array('class'=>'product_name'));
				} else 
					echo __("Guest",true);
			?>
		</td>
		<td>
			<?php echo $user['Whoonline']['ip_address']; ?>
		</td>
		<td>
			<?php 
				echo $user['Whoonline']['browser'];
			?>
		</td>
		<td>
			<?php echo $user['Whoonline']['os'];  ?>
		</td>
		<td>
			<?php echo date("d-m-y h:i:s",$user['Whoonline']['activity']); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</tbody>
</table>
</div>
</div>
</div>


</div>
</div>
